package com.umeox.moto.common.utils;


import java.util.Locale;

public class LanguageConfig {

    public static final Locale[] LOCALE_ELARI = {
            Locale.US
            , new Locale("ru")
            , new Locale("de")
            , new Locale("es")
            , new Locale("et")
            , new Locale("fr")
            , new Locale("it")
            , new Locale("lt")
            , new Locale("lv")
            , new Locale("sl")
            , new Locale("uk")
    };

    /*    public static final Locale[] LOCALE_MOTO = {
                Locale.US
                , new Locale("es")
                , new Locale("fr")
                , new Locale("de")

        };*/

    public static final Locale[] LOCALE_IQIBLA_KID = {
            Locale.US
            ,  new Locale("ar")
            ,  new Locale("fr")
            ,  new Locale("de")
            ,  new Locale("ru")
            ,  new Locale("tr")
            ,  new Locale("in")
    };
    public static final Locale[] LOCALE_JAPAN = {Locale.US
            , Locale.CHINA
            , Locale.JAPANESE
            , Locale.JAPAN
    };

    public static final Locale[] LOCALE_MYALO = {
            new Locale("vi")
            , Locale.US
    };

    public static final Locale[] LOCALE_WATCH_OUT = {
            Locale.US,
            new Locale("hi")

    };

    public static String initialsToUpperCase(Locale locale) {
        if (locale.equals(Locale.JAPAN)) {
            return "にほんご";
        }
        String str = locale.getDisplayLanguage(locale);
        final int length = str.length();
        final String initials = str.substring(0, 1).toUpperCase(locale);
        final String end = str.substring(1, length);
        return initials + end;
    }

}
